<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>编辑货车信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/animate.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/style.min.css?v=4.1.0" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/jQuery-Validation/css/validationEngine.jquery.css" rel="stylesheet">
    <style type="text/css">
        .formErrorContent{color: red;}
    </style>
</head>
<body class="gray-bg">
<div class="formErrorContent"></div>
    <div class="container" style="margin-top: 20px">
        <form class="form-horizontal" role="form" id="editTruckForm">
                <input type="hidden" name="truckId" id="truckId">
                <div class="form-group">
                    <label class="col-sm-4 control-label">车牌号:</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control validate[required]" name="truckCarnum" id="truckCarnum" placeholder="车牌号">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">车辆类型:</label>
                    <div class="col-sm-4">
                        <select class="form-control validate[required]" name="truckType" id="truckType">
                            <option value="">请选择</option>
                            <option value="1">重型货车</option>
                            <option value="2">中型货车</option>
                            <option value="3">轻型货车</option>
                            <option value="4">微型货车</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">是否是公司车辆:</label>
                    <div class="col-sm-4">
                        <select class="form-control validate[required]" name="truckIsCompany" id="truckIsCompany">
                            <option value="">请选择</option>
                            <option value="0">公司车辆</option>
                            <option value="1">社会车辆</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">司机:</label>
                    <div class="col-sm-4">
                        <select class="form-control validate[required]" name="truckDriver" id="truckDriver">
                            <option value="">请选择</option>
                        </select>
                    </div>
                </div>
                <shiro:hasRole name="root">
	                <div class="form-group">
	                    <label class="col-sm-4 control-label">分站点:</label>
	                    <div class="col-sm-4">
	                        <select class="form-control validate[required]" name="truckCompany" id="truckCompany">
	                            <option value="">请选择</option>
	                        </select>
	                    </div>
	                </div>
                </shiro:hasRole>
                <div class="form-group" style="margin-left: 150px;margin-top: 50px">
                    <div class="col-sm-6  control-label">
                        <button type="button" class="btn btn-default" onclick="closeForm();">关闭</button>
                        &nbsp;&nbsp;&nbsp;&nbsp;<button type="submit" class="btn btn-primary" id="save">保存</button>
                    </div>
                </div>
         </form>
    </div>
<script src="${pageContext.request.contextPath}/js/jquery.min.js?v=2.1.4"></script>
<script src="${pageContext.request.contextPath}/js/bootstrap.min.js?v=3.3.6"></script>
<script src="${pageContext.request.contextPath}/js/content.min.js?v=1.0.0"></script>
<script src="${pageContext.request.contextPath}/js/plugins/layer/layer.min.js"></script>
<script src="${pageContext.request.contextPath}/js/public/ttbj-core.js"></script>
<script src="${pageContext.request.contextPath}/jQuery-Validation/js/jquery.validationEngine.js"></script>
<script src="${pageContext.request.contextPath}/jQuery-Validation/js/jquery.validationEngine-zh_CN.js"></script>
<script src="${pageContext.request.contextPath}/js/business/truck/edit_truck.js"></script>
</body>
</html>